home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / EXEC.SWG / 0001_COM.pas next >
Pascal/Delphi Source File  |  1996-09-03  |  975b  |  23 lines

  1. --------E-COM-------------------------------
  2.  
  3. The COM files are raw binary executables and are a leftover from the old
  4. CP/M  machines with 64K RAM. A COM program  can only have a size of less
  5. than  one segment (64K), including code  and static data since no fixups
  6. for segment relocation or anything else is included. One method to check
  7. for  a  COM  file is to check if the  first  byte in the file could be a
  8. valid jump or call opcode, but this is a very weak test since a COM file
  9. is not required to start with a jump or a call. In principle, a COM file
  10. is just loaded at offset 100h in the segment and then executed.
  11.  
  12. OFFSET              Count TYPE   Description
  13. 0000h                   1 byte   ID=0E9h
  14.                                  ID=0EBh
  15. Those are not safe ways to determine wether a file is a COM file or not,
  16. but most COM files start with a jump.
  17.  
  18. Further information not available.
  19. EXTENSION:COM
  20. OCCURENCES:PC
  21. SEE ALSO:EXE,MZ EXE,NE EXE
  22.  
  23.